WooCommerce\PayPalCommerce\Applepay\Assets\ApplePayButton B

Total Complexity 100
Dependencies 13
Dependents 2
Total lines 1,098
Lines of code 694
Logical lines of code 339
Comment lines 272
Methods 33
Properties 13

Methods 33

Method Rating Maintainability Complexity Lines of code
render()
A
39 12 78
update_shipping_contact()
A
41 9 63
initialize()
A
48 8 36
calculate_totals_cart_page()
S
48 5 41
update_shipping_method()
S
49 5 35
create_wc_order()
S
46 4 47
cart_shipping_methods()
S
50 5 32
update_posted_data()
S
46 4 40
which_calculate_totals()
S
53 5 24
calculate_totals_single_product()
S
49 4 37
cart_calculation_results()
S
57 4 17
add_apple_onboarding_option()
S
57 4 17
save_old_cart()
S
63 3 11
bootstrap_ajax_request()
S
52 1 34
reload_cart()
S
67 3 8
is_enabled()
S
69 3 7
enqueue_styles()
S
63 2 12
validate()
S
63 2 11
enqueue()
S
56 1 22
customer_address()
S
59 1 16
enqueue_admin()
S
61 1 15
clear_current_cart()
S
70 2 7
prepare_cart()
S
59 1 15
is_nonce_valid()
S
64 2 10
getShippingPackages()
S
60 1 13
__construct()
S
60 1 13
hide_gateway_until_eligible()
S
83 1 5
applepay_data_object_http()
S
80 1 3
create_wc_countries()
S
80 1 3
enqueue_admin_styles()
S
67 1 9
script_data()
S
81 1 3
script_data_for_admin()
S
81 1 3
applepay_button()
S
72 1 7